﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="asp.netWebFroms._Default" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">

    <style>
        #con {
            margin:20%;
        }
        th {
            text-align:center;
        }
        td{
            width:900px;
            height:50px;
            text-align:center;
        }
    </style>

    <div id="con">
        <asp:GridView ID="GridView1" runat="server"
         OnRowCancelingEdit="GridView1_RowCancelingEdit"
         OnRowEditing="GridView1_RowEditing"
         OnRowDeleting="GridView1_RowDeleting"
         OnRowUpdating="GridView1_RowUpdating"
        BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2">
        <Columns>            
            <asp:CommandField ButtonType="Button" ShowDeleteButton="True" ShowEditButton="True" HeaderText="操 作"/>            
        </Columns>
        
        <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
        <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
        <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
        <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FFF1D4" />
        <SortedAscendingHeaderStyle BackColor="#B95C30" />
        <SortedDescendingCellStyle BackColor="#F1E5CE" />
        <SortedDescendingHeaderStyle BackColor="#93451F" />

    </asp:GridView>
          &nbsp;&nbsp;&nbsp;
        <div style="margin-left: 280px">
        <asp:Button ID="add" runat="server"  Text="添 加" OnClick="add_Click"/>
    </div>
    </div>
  



</asp:Content>
